const vscode = require('vscode');
const ConstString = require( './ConstString.js');

const Utility = 
{
    name2 : "Utility",
    //#region 配置文件
    get config()  { return vscode.workspace.getConfiguration(ConstString.config.ExtConfigRoot);},
    get projPathCfg() { return this.config.get(ConstString.config.ProjPathCfg); },
    get msgWorkspacePath() { return this.config.get(ConstString.config.MsgWorkspacePath); },
    get tortoiseSVN() { return this.config.get(ConstString.config.TortoiseSVN); },
    //#endregion
    
    //#region 项目路径
    GetProjPathCfg: (name) => { return Utility.projPathCfg[name]; },
    //#endregion
    
    //#region 获取BCompare路径
    get bComparePath() { return this.config.get(ConstString.config.BComparePath); },
    //#endregion

};

module.exports = Utility;